Repository navigation
Audio: Validate idle and streaming DSP crash recovery - #706
Draft
Srikanth Muppandam (smuppand) wants to merge 2 commits into
Draft
Srikanth Muppandam (smuppand) wants to merge 2 commits into
Srikanth Muppandam (smuppand) wants to merge 2 commits into
Conversation
Resolve stable card identity and runtime DSP component ownership, verify the owned PCM stream, and reuse bounded playback and selected-card mixer restoration without changing existing audio flows. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add separate ALSA recovery tests for a crash while idle and during an owned running stream. Resolve card identity and DSP ownership from runtime ASoC links, preserve mixer state, require actual card re-registration and verify playback after recovery. The stream test also rejects hangs and requires a device-disconnect error. Depends on the Remoteproc_Restart_Validation implementation in qualcomm-linux#643, reused for injection, recovery policy, event ordering and firmware/kernel fault classification. Without that dependency or image-provided optional prerequisites, the new suites skip. Existing AudioPlayback and AudioRecord behavior is unchanged. Validation: 42 host runner controls cover success, missing prerequisites, unrelated cards, genuine child failures, wrong stream ownership, hangs, incomplete results, control restoration and kernel faults. ShellCheck 0.9.0, dash syntax, YAML/result contracts, notices and whitespace passed. Hardware validation on applicable Yocto, Debian, Ubuntu, CentOS and ramdisk images is pending. No packages are installed and no LAVA job was submitted. Source walkthrough: qualcomm-linux/kernel 17bbb4b sound/soc/soc-core.c, sound/core/init.c and pcm.c, plus alsa-utils v1.2.14 aplay.c. The suites validate digital playback completion, not acoustic output. Explicit isolated-target opt-in is required. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Srikanth Muppandam (smuppand)
force-pushed
the
audio-dsp-recovery-validation
branch
from
November 25, 2026 17:56
6091c56 to
364a3e6
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add separate ALSA recovery tests for a crash while idle and during an owned running stream. Resolve card identity and DSP ownership from runtime ASoC links, preserve mixer state, require actual card re-registration and verify playback after recovery. The stream test also rejects hangs and requires a device-disconnect error.
Depends on the Remoteproc_Restart_Validation implementation in #643, reused for injection, recovery policy, event ordering and firmware/kernel fault classification. Without that dependency or image-provided optional prerequisites, the new suites skip. Existing AudioPlayback and AudioRecord behavior is unchanged.
Validation: 46 host runner controls cover success, missing prerequisites, unrelated cards, genuine child failures, wrong stream ownership, hangs, incomplete results, control restoration and kernel faults. ShellCheck 0.9.0, dash syntax, YAML/result contracts, notices and whitespace passed. Hardware validation on applicable Yocto, Debian, Ubuntu, CentOS and ramdisk images is pending. No packages are installed and no LAVA job was submitted.
Source walkthrough: qualcomm-linux/kernel 17bbb4b sound/soc/soc-core.c, sound/core/init.c and pcm.c, plus alsa-utils v1.2.14 aplay.c. The suites validate digital playback completion, not acoustic output. Explicit isolated-target opt-in is required.
Additional local validation: SIGTERM during the controlled operation produces FAIL and restores the test-owned state without leaking the owned playback process or leaving the selected video driver unbound. These are host fixtures, not DUT crash/rebind results.